<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FrmProvinciaABM.aspx.vb" Inherits="TGB.FrmProvinciaABM" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;&nbsp;
        <asp:Panel ID="Panel1" runat="server" Height="488px" Width="488px">
        <div id="DIV2" style="vertical-align: middle; width: 54%; height: 133px; background-color: #efefef;
            text-align: center">
            <br />
            <table class="tabla" style="width: 464px; height: 112px; text-align: center">
                <tr>
                    <td align="right" style="width: 17%; height: 40px">
                        Nombre de Provincia:</td>
                    <td align="left" style="width: 22%; height: 40px">
                        <asp:TextBox ID="TxtLocalidad" runat="server" CssClass="campotxt" Width="320px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFVTxtProvincia" runat="server" ControlToValidate="TxtLocalidad"
                            ErrorMessage="Ingrese un Nombre"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" colspan="2" style="height: 21px">
                        <asp:LinkButton ID="LinkGuardar" runat="server" CssClass="BotonLink">Guardar</asp:LinkButton>/
                        <asp:LinkButton ID="LinkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton>/
                        <asp:LinkButton ID="LinkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton>/
                        <asp:LinkButton ID="LinkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>/
                        <asp:LinkButton ID="LinkModificar" runat="server" CssClass="BotonLink">Modificar</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
            <br />
            <asp:GridView ID="GridLocalidades" runat="server" AllowPaging="True" AllowSorting="True"
                AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Peru"
                BorderWidth="1px" CellPadding="2" CssClass="tabla" EnableSortingAndPagingCallbacks="True"
                ForeColor="Black" GridLines="None" Height="88px" PageSize="10" Style="vertical-align: middle;
                text-align: center" Width="464px">
                <PagerSettings PageButtonCount="25" />
                <Columns>
                    <asp:TemplateField HeaderText="CodigoProv">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodigoLocalidad") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LnkVer" runat="server" CssClass="BotonLink">Ver</asp:LinkButton>
                            <asp:HiddenField ID="HdLocalidades" runat="server" Value='<%# bind("CodigoProv") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nombre">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Nombre") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="LblNombre" runat="server" CssClass="CampoLbl" Text='<%# Bind("Nombre") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="Tan" />
                <PagerStyle BackColor="Tan" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
            </asp:GridView>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
